//
//  LikeOfCustomForNone.m
//  PetAPP
//
//  Created by apple on 16/3/7.
//  Copyright © 2016年 Yuming. All rights reserved.
//

#import "LikeOfCustomForNone.h"
#import <DKNightVersion.h>

#define WIDTH self.frame.size.width
#define HEIGHT self.frame.size.height


@implementation LikeOfCustomForNone

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubViews];
    }
    return self;
}

- (void)createSubViews {
    
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(self.center.x - ( HEIGHT / 5 * 3 - 10) / 2, 0,  HEIGHT / 5 * 3 - 10, HEIGHT / 5 * 3 - 10)];
    [self addSubview:imageView];
    [imageView release];
    imageView.image = [UIImage imageNamed:@"zhanweitu"];
    imageView.userInteractionEnabled = YES;
    
    
    UILabel *labelOfText = [[UILabel alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(imageView.frame) + 10, WIDTH, HEIGHT / 5 - 10)];
    [self addSubview:labelOfText];
    [labelOfText release];
    labelOfText.text = @"亲，您还没有关注任何人哦!";
    labelOfText.textAlignment = NSTextAlignmentCenter;
    labelOfText.textColor = [UIColor colorWithRed:0.7212 green:0.7212 blue:0.7212 alpha:1.0];
    
    
}


@end
